using ASP;
using HoWave.Common;
using HoWave.Web.Admin;
using System;
using System.Web.Profile;
using System.Web.SessionState;
using System.Web.UI.WebControls;
public class HL_Admin_Admin_Index : Admin, IRequiresSessionState
{
	protected Literal LoginName;
	public string Admin_Url = "admin_main.aspx";
	private string _sitename = null;
	protected DefaultProfile Profile
	{
		get
		{
			return (DefaultProfile)this.Context.Profile;
		}
	}
	protected global_asax ApplicationInstance
	{
		get
		{
			return (global_asax)this.Context.ApplicationInstance;
		}
	}
	public string SiteName
	{
		get
		{
			string sitename;
			if (this._sitename == null)
			{
				this._sitename = this.config["SiteName"].ToString();
				sitename = this._sitename;
			}
			else
			{
				sitename = this._sitename;
			}
			return sitename;
		}
	}
	protected void Page_Load(object sender, EventArgs e)
	{
		this.LoginName.Text = base.admin.AdminName + " " + base.admin.GetAccess();
		if (!string.IsNullOrEmpty(Fetch.Get("MainUrl")) && Fetch.Get("MainUrl") != "")
		{
			this.Admin_Url = Fetch.Get("MainUrl");
		}
	}
}
